package com.iking.toolkit.system.service;

import com.iking.toolkit.model.Msg;
 import com.iking.toolkit.model.PageRes;
import com.iking.toolkit.system.model.http.HttpDictionaryItemSelectReq;
import com.iking.toolkit.system.model.model.DictionaryItems;

/**
 * dictionary_items（数据字典内容） Service 接口
 *
 * @author user
 * @since 2022-10-09
 */
public interface DictionaryItemsService {

    /**
     * @Description: 根据类型查询内容
     * @Param: [req]
     * @return: com.iking.common.model.Msg
     * @Author: wk
     * @Date: 7/2/2020 上午9:07
     */
    Msg<PageRes<DictionaryItems>> searchInstrumentsId(HttpDictionaryItemSelectReq req);

    /**
     * @Description: 删除数据字典内容
     * @Param: [id]
     * @return: com.iking.common.model.Msg
     * @Author: wk
     * @Date: 7/2/2020 上午9:30
     */
    Msg deleteByPrimaryKey(String id);

    /**
     * @Description: 修改数据字典内容
     * @Param: [req]
     * @return: com.iking.common.model.Msg
     * @Author: wk
     * @Date: 7/2/2020 上午9:28
     */
    Msg update(DictionaryItems req);

    /**
     * @Description: 新增数据字典内容
     * @Param: [req]
     * @return: com.iking.common.model.Msg
     * @Author: wk
     * @Date: 7/2/2020 上午9:27
     */
    Msg insert(DictionaryItems req);

    /**
     * @Description: 按参数查询(拼音码)
     * @Param: [pym]
     * @return: com.iking.common.model.Msg
     * @Author: wk
     * @Date: 7/2/2020 上午9:25
     */
    Msg searchInstrumentsPym(String pym);

    /**
     * @Description: 根据数据字典类型拼音码和数据字典内容拼音码查询数据字典内容
     * @Param: [valuepym, typepym]
     * @return: com.iking.common.model.Msg
     * @Author: wk
     * @Date: 7/2/2020 上午9:31
     */
    Msg<DictionaryItems> selectByTypeIdAndPym(String valuepym, String typepym);

    /**
     * @Description: 根据数据字典类型拼音码查询数据字典内容
     * @Param: [typepym]
     * @return: com.iking.common.model.Msg
     * @Author: wk
     * @Date: 7/2/2020 上午9:32
     */
    Msg selectByTypePym(String typepym);


}
